package com.zzy.study.io;


public class TestCFSSerializable {

//	public static void main(String[] args) throws IOException {
//		
////		Person originalPerson = new Person(1024, "eason");
////		
////		DataOutputStream out = new DataOutputStream(new FileOutputStream("f:\\test\\test.txt"));
////		originalPerson.write(out);
////		System.out.println("original Person:" + originalPerson);
////		
////		Person fromFilePerson = new Person();
////		DataInputStream in = new DataInputStream(new FileInputStream("f:\\test\\test.txt"));
////		fromFilePerson.readFields(in);
////		System.out.println("from File Person: " + fromFilePerson);
//		
//		Person originalPerson = new Person(24, "eason");
//		
//		DataOutputBuffer outBuffer = new DataOutputBuffer();
//		originalPerson.write(outBuffer);
//		System.out.println(outBuffer.getLength());
//		for(byte b : outBuffer.getData()) {
//			System.out.print(b);
//		}
//	}

}
